sdgraphdefinitionmgr module

class sd.api.sdgraphdefinitionmgr.SDGraphDefinitionMgr(APIContext, handle, *args, **kwargs)

Bases: sd.api.sdapiobject.SDAPIObject

Keep track of all available graph definitions. There is only one SDGraphDefinitionMgr, that you can retrieve from the SDApplication

addGraphDefinition(sdGraphDefinition: sd.api.sdgraphdefinition.SDGraphDefinition) → None

Add a new graph definition. The Id has to be unique in the application

Parameters

sdGraphDefinition – The SDGraphDefinition to add

getClassName() → str

Returns the most specific name of the class this APIObject is

getGraphDefinitionFromId(id: str) → Optional[sd.api.sdgraphdefinition.SDGraphDefinition]

Get SDGraphDefinition that match the specified Id

Parameters

id – The id of the SDGraphDefinition to retrieve

getGraphDefinitions() → sd.api.sdarray.SDArray[sd.api.sdmodule.SDModule][sd.api.sdmodule.SDModule]

Get all available SDGraphDefinition

release() → None

Releases an APIObject